<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .col{  
         background-color: #ccc;
        }
    </style>
</head>
<!-- 引入react核心库js文件 -->
<script src="https://cdn.staticfile.org/react/16.4.0/umd/react.development.js"></script>
<!-- 引入react-dom，用于支持react操作DOM -->
<script src="https://cdn.staticfile.org/react-dom/16.4.0/umd/react-dom.development.js"></script>
<!-- 引入babel，用于将jsx转为js -->
<script src="https://cdn.staticfile.org/babel-standalone/6.26.0/babel.min.js"></script>

<body>
 <div id="box"></div>
 <script type="text/babel">
 const data = [ 'React','Vue','Angule']
 const MYDOM=(
     <div>
        <h1>前端js框架列表</h1>
        <ul>
            {
                // 花括号在只能写js表达式：标签中混入js表达式时要用{}
                data.map((item,index)=>{
                    return <li key={index}>{item}</li>
                })
            }
            </ul>
        </div>
 )
 ReactDOM.render(MYDOM,document.getElementById('box'))

 </script>
</body>

</html>